package com.ky.home.mapper;

import com.ky.home.entity.Collectqueston;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ky.home.entity.VO.CollectQuestionVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 题目收藏记录 Mapper 接口
 * </p>
 *
 * @author pl
 * @since 2024-06-23
 */
public interface CollectquestonMapper extends BaseMapper<Collectqueston> {
    @Select("SELECT c.*, e.* FROM collectqueston c LEFT JOIN exam e ON c.question_id = e.id")
    List<CollectQuestionVO> selectListByExam(Integer collectQuestionID);
}
